wayland: Always request transient commit when mapping subsurface
authorJonas Ådahl <jadahl@gmail.com>
Wed, 17 Jun 2015 09:31:19 +0000 (17:31 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 17 Jun 2015 09:41:31 +0000 (17:41 +0800)
commit0dab37c78fe261fc914e4a12d48e732726f13d43
tree25c8b1a3193ee40efee38b29cbaf55b13839342f
parentfb06b6e4b8cc312f56322b38b91af5b4c726bc33
wayland: Always request transient commit when mapping subsurface

A subsurface positioning operation only takes effect when the parent
surfaces state is applied. If a subsurface is mapped and positioned, but
the parent surface state is not immediately committed, the relative
position of the subsurface is undefined and may be placed incorrectly.

To avoid this undefined state, always request that the parent surface
should be committed after mapping a subsurface so that the position
operation will take effect.

https://bugzilla.gnome.org/show_bug.cgi?id=751098
gdk/wayland/gdkwindow-wayland.c